/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1generaldemo;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String str1="12345";
        str1="123456789";
        System.out.println(str1);
        StringBuffer str2=new StringBuffer("12345");
        System.out.println(str2);
        str2.append("6789");
        System.out.println(str2);
        str2.reverse();
        System.out.println(str2);
        
        BigInteger bigInteger1=new BigInteger("30000000000000000");
        System.out.println(bigInteger1.add(BigInteger.ONE));
        
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Calendar calendar=Calendar.getInstance();
        System.out.println(sdf.format(calendar.getTime()));  //DateTime
        
        System.out.println(DateUtil.getStringDate());
        
        for(int i=0;i<10;i++)
        {
            System.out.println(VerifyCode.getCode(4));
        }
        
        
        int[] array1=new int[5];
        array1[0]=12;
        array1[1]=7;
        array1[2]=79;
        array1[3]=54;
        array1[4]=32;
        System.out.println(array1[4]);
        //array1[5]=36;
        
        ArrayList<Integer> array2=new ArrayList();  //泛型
        array2.add(12);
        array2.add(7);
        array2.add(79);
        array2.add(54);
        array2.add(32);
        System.out.println(array2.get(4));
        array2.add(36);
        System.out.println(array2.get(5));
        array2.remove(5);
        //System.out.println(array2.get(5));
        //array2.add(str1);
        //array2.add(str2);
        //array2.add(calendar);
    }
    
}
